package com.industry.examinaion.dal.dataobject;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.industry.framework.core.annountions.record.IdooRecordBizType;
import com.industry.framework.core.annountions.record.IdooRecordProperty;
import com.industry.system.dal.dataobject.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 题目表
 * </p>
 *
 * @author nbZhuoZh
 * @since 2025-07-01
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("examinaion_question")
@IdooRecordBizType
public class ExaminaionQuestion extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 租户编号
     */
    private String tenantId;

    /**
     * 部门ID；空则为公共客户数据
     */
    private String deptId;

    /**
     * 所属题库ID
     */
    private String examinaionBankId;

    /**
     * 题目类型: 1-单选, 2-多选, 3-填空, 4-简答
     */
    @IdooRecordProperty(value = "类型" , idooSelector = false)
    private String type;

    /**
     * 题目内容
     */
    @IdooRecordProperty(value = "问题")
    private String content;

    /**
     * 选项JSON(单选/多选题使用)
     */
    @IdooRecordProperty(value = "选项" , idooSelector = false)
    private String options;

    /**
     * 答案
     */
    private String answer;

    /**
     * 难度等级: 0-简单, 1-中等, 2-困难
     */
    @IdooRecordProperty(value = "难度等级" , idooSelector = false)
    private String difficulty;

    /**
     * 解析
     */
    private String analysis;

    /**
     * 分值
     */
    private Integer score;

    /**
     * 删除标记
     */
    @TableLogic
    private String delFlag;

    /**
     * 创建部门
     */
    private String createDept;
}
